const render = [
  (h, params, vm) => {
    return h('div', [
      h('a', {
          attrs: {
            title: '编辑项目',
          },
          style: {
            marginRight: '8px'
          },
          on: {
            click: () => {
              vm.$emit('on-edit', params.row)
            }
          }
        },
        [
          h('icon', {
            props: {
              type: 'ios-create',
              size: '20',
            },
          }),
        ]),

      h('a', {
          attrs: {
            title: '复制项目',
          },
          style: {
            marginRight: '8px'
          },
          on: {
            click: () => {
              vm.$emit('on-copy', params.row.id)
            }
          }
        },
        [
          h('icon', {
            props: {
              type: 'ios-copy',
              color: '#F6810A',
              size: '20',
            },
          }),
        ]),

      h('a', {
          attrs: {
            title: '检测项目',
          },
          style: {
            marginRight: '8px'
          },
          on: {
            click: () => {
              vm.$emit('on-detection', params.row.id)
            }
          }
        },
        [
          h('icon', {
            props: {
              type: 'md-bug',
              size: '20',
              color: '#1ca889'
            },
          }),
        ]),

      h('a', {
          attrs: {
            title: '删除项目',
          },
          style: {
            color: '#B14949',
            marginRight: '8px',
            fontWeight: 'border',
            height: '18px',
            display: 'inline-block'
          },
          on: {
            click: () => {
              vm.$emit('on-delete', params.row.id)
            }
          }
        },
        [
          h('icon', {
            props: {
              type: 'md-trash',
              size: '18',
            },
          }),
        ],)
    ])
  }
]
export default render
